package com.lavender.business.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@RequestMapping("/order")
@FeignClient(name = "order-service", url = "127.0.0.1:8083")
public interface OrderFeignClient {

    /**
     *
     * @param userId
     * @param commodityCode
     * @param count
     */
    @GetMapping("create")
    void create(@RequestParam("userId") String userId, @RequestParam("commodityCode") String commodityCode, @RequestParam("count") Integer count);

}
